#ifndef _TIMECNT_H
#define _TIMECNT_H
#include "platform.h"
extern volatile uint32_t g_MotorDelayCnt;
extern volatile uint32_t g_DisplayDelayCnt;
extern volatile uint32_t g_MotorStartCnt;//自适应负载启动计数器
extern volatile uint32_t g_DutySetCnt;
extern volatile uint8_t g_MotorSwitchCnt;
extern volatile uint16_t g_LockCurrentCnt;//堵转电流保护计数器
extern volatile uint16_t g_LockPhaseCnt;//堵转相位保护计数器

extern uint32_t u32GetMotorDelayCnt(void);
extern void setMotorDelayCnt(uint32_t value);
extern uint32_t u32GetDisplayDelayCnt(void);
extern void setDisplayDelayCnt(uint32_t value);
uint32_t u32GetMotorStartCnt(void);
void setMotorStartCnt(uint32_t value);
uint32_t u32GetDutySetCnt(void);
void setDutySetCnt(uint32_t value);
uint8_t u8GetMotorSwitchCnt(void);
void setMotorSwitchCnt(uint32_t value);
uint32_t u32GetLockCurrentCnt(void);
void setLockCurrentCnt(uint32_t value);
uint32_t u32GetLockPhaseCnt(void);
void setLockPhaseCnt(uint32_t value);
#endif
